package com.woniu.humanresource.controller;


import com.woniu.humanresource.dto.SearchDtoByPage;
import com.woniu.humanresource.entity.ResponseText;
import com.woniu.humanresource.service.CheckInCountService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author zyq
 * @since 2022-07-12
 */
@RestController
@RequestMapping("/checkInCount")
public class CheckInCountController {
    @Autowired
    private CheckInCountService checkInCountService;
    @PostMapping
    public ResponseText getAll(@RequestBody SearchDtoByPage searchDtoByPage){
        System.out.println("s");
        return new ResponseText<>(checkInCountService.getALl(searchDtoByPage.getPageIndex(),
                searchDtoByPage.getPageSize(),
                searchDtoByPage.getName(),
                searchDtoByPage.getDepName(),
                searchDtoByPage.getNums()), 200, "ok");
    }

}

